package {{.TableCamelNameLower}}
import "mldong/internal/modules/{{.ModuleName}}/entity"
// {{.RealTableName}} {{.Remark}}
type {{.TableCamelName}}VO struct {
  entity.{{.TableCamelName}}{{ if .IsTree }}
  Children []*{{.TableCamelName}}VO `json:"children" dc:"子{{.Remark}}"`{{ end }}
}{{ if .IsTree }}
// 实现 TreeNode 接口 
func (d *{{.TableCamelName}}VO) GetId() *string       { return d.ID }
func (d *{{.TableCamelName}}VO) GetParentId() *string { return d.ParentId }
func (d *{{.TableCamelName}}VO) GetName() *string     { return d.Name }
func (d *{{.TableCamelName}}VO) GetSort() *string     { return d.Sort }

// 直接返回 *{{.TableCamelName}}VO 列表
func (d *{{.TableCamelName}}VO) GetChildren() []*{{.TableCamelName}}VO {
	return d.Children
}

// 直接接收 *{{.TableCamelName}}VO 列表
func (d *{{.TableCamelName}}VO) SetChildren(nodes []*{{.TableCamelName}}VO) {
	d.Children = nodes
}{{ end }}
